<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateChangeOrderSourceLogsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('change_order_source_logs', function (Blueprint $table) {
            $table->id();
            $table->string('name')->nullable()->comment('修改者昵称');
            $table->integer('change_id')->default(0)->comment('修改者id');
            $table->string('pre')->nullable()->comment('修改前店');
            $table->string('sub')->nullable()->comment('修改后店');
            $table->string('order_sn')->nullable()->comment('修改单号');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('change_order_source_logs');
    }
}
